function share(options) {
    console.log("*********JOIN1************", options, options.pmid)
    if (!options.pmid) {
        return
    }
    console.log("*********JOIN2************" + options.pmid)
    wx.getSetting({
        success: res => {
            if (res.authSetting['scope.userInfo']) {
                getApp().http.get('city/tiny-station/vip-spread', {
                    data: {
                        member_id: options.pmid,
                    }
                }).then(res => {
                    console.log(res, "JOIN resulr*****************")
                }).catch(err => {})
            }
        }
    })
    // let ps = getCurrentPages()
    // ps[ps.length - 1].setData({
    //     shareId: false
    // })
}
module.exports = share